package com.example.demo.mapper;

import com.example.demo.pojo.Book;
import com.example.demo.pojo.Borrow;
import com.example.demo.pojo.User;
import com.example.demo.pojo.UserInfo;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
    List<User> findUser(User user);
    void insertUser(User user);
    List<Book> getBooks(Book book);
    List<UserInfo> getUserInfo(UserInfo userInfo);
    void updateUser(User user);
    void updateUserInfo(UserInfo userInfo);
    void deleteUser(User user);
    void deleteUserByIds(List<Integer> ids);
    void insertUserInfo(UserInfo userInfo);
    void BorrowBook(Borrow borrow);
    void insertBook(Book book);
    List<Map<String, Object>> getBorrow (String name);
    void updateBook(Book book);
    void returnBook(Borrow borrow);
    void updateStatus(Borrow borrow);
}
